package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.form.SOrderImportedSearchForm;
import cn.huiyunche.base.service.model.SOrderImported;
import cn.huiyunche.base.service.vo.PageVo;
import cn.huiyunche.base.service.vo.SOrderImportedVo;

import java.util.List;
import java.util.Map;

/**
 * 导入
 * Created by LYN on 9/19/16.
 */
public interface SOrderImportedService {

    /**
     * 查询已导入订单数据
     *
     * @param sOrderImportedSearchForm
     * @return
     */
    Map<String, Object> search(SOrderImportedSearchForm sOrderImportedSearchForm, PageVo pageVo) throws Exception;


    /**
     * 获取导入Excel订单详情
     *
     * @param id
     * @return
     */
    SOrderImported getById(Long id);

    /**
     * @param orders order表单
     * @return
     * @Title: add
     * @Description: 添加订单（下单）
     * @return: String
     */
    Map<String, Object> create(SOrderImportedVo orders, Boolean isPublish) throws Exception;


    /**
     * @param orders order表单
     * @return
     * @Title: batchCreate
     * @Description: 批量下单
     * @return: String
     */
    List<Map<String, Object>> batchCreate(List<SOrderImportedVo> orders) throws Exception;

    /**
     * update orderimported
     *
     * @param orderImported
     * @return
     */
    SOrderImportedVo save(SOrderImportedVo orderImported) throws Exception;

    /**
     * 批量下单
     *
     * @param orders
     */
    List<SOrderImportedVo> importFromExcel(List<SOrderImportedVo> orders) throws Exception;


    /**
     * 批量删除
     *
     * @param ids
     * @return
     */
    boolean del(List<Long> ids);

    /**
     * 导入
     *
     * @param soiv
     */
    void publishByExcel(SOrderImportedVo soiv) throws Exception;
}
